import request from '@/utils/request'

// 查询工作经历列表
export function listRegisterWork(query) {
  return request({
    url: '/business/registerWork/list',
    method: 'get',
    params: query
  })
}

// 查询工作经历所有列表
export function listAllRegisterWork(query) {
  return request({
    url: '/business/registerWork/listAll',
    method: 'get',
    params: query
  })
}

// 查询工作经历详细
export function getRegisterWork(id) {
  return request({
    url: '/business/registerWork/getInfo/' + id,
    method: 'get'
  })
}

// 新增工作经历
export function addRegisterWork(data) {
  return request({
    url: '/business/registerWork/add',
    method: 'post',
    data: data
  })
}

// 修改工作经历
export function updateRegisterWork(data) {
  return request({
    url: '/business/registerWork/edit',
    method: 'post',
    data: data
  })
}

// 删除工作经历
export function delRegisterWork(id) {
  return request({
    url: '/business/registerWork/remove/' + id,
    method: 'get'
  })
}
